package com.rx.school.vo.relation;

import com.rx.core.data.RxData;
import com.rx.core.iface.RelationQuery;
import com.rx.core.util.RxUtil;
import com.rx.school.vo.SchHomeInfo;
import com.rx.school.vo.SchPresidentInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@RxData
@Data
@EqualsAndHashCode(callSuper = true)
public class DoubleSchHomeInfo extends SchHomeInfo implements RelationQuery {
    Object relation;

    List records;

    @Override
    public void assignRelation(Object object) {
        this.relation = object;
    }

    @Override
    public Object obtainRelation() {
        return relation;
    }

    public void assignList(List list){
        records = list;
    }


}
